<div class="users view">
<h2><?php echo __('User'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($user['User']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Phone'); ?></dt>
		<dd>
			<?php echo h($user['User']['phone']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('IsRegistered'); ?></dt>
		<dd>
			<?php echo h($user['User']['isRegistered']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($user['User']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($user['User']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Pwd Hash'); ?></dt>
		<dd>
			<?php echo h($user['User']['pwd_hash']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('IsVisible'); ?></dt>
		<dd>
			<?php echo h($user['User']['isVisible']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('PassSeed'); ?></dt>
		<dd>
			<?php echo h($user['User']['passSeed']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Approver Responses'), array('controller' => 'approver_responses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Approver Response'), array('controller' => 'approver_responses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Checker Responses'), array('controller' => 'checker_responses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Checker Response'), array('controller' => 'checker_responses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Donations'), array('controller' => 'donations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Donation'), array('controller' => 'donations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Story Items'), array('controller' => 'story_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Story Item'), array('controller' => 'story_items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Stories'), array('controller' => 'stories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Story'), array('controller' => 'stories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Usertypes'), array('controller' => 'usertypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Usertype'), array('controller' => 'usertypes', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Approver Responses'); ?></h3>
	<?php if (!empty($user['ApproverResponse'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Story Id'); ?></th>
		<th><?php echo __('Verdict'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['ApproverResponse'] as $approverResponse): ?>
		<tr>
			<td><?php echo $approverResponse['user_id']; ?></td>
			<td><?php echo $approverResponse['story_id']; ?></td>
			<td><?php echo $approverResponse['verdict']; ?></td>
			<td><?php echo $approverResponse['note']; ?></td>
			<td><?php echo $approverResponse['created']; ?></td>
			<td><?php echo $approverResponse['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'approver_responses', 'action' => 'view', $approverResponse['d'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'approver_responses', 'action' => 'edit', $approverResponse['d'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'approver_responses', 'action' => 'delete', $approverResponse['d']), null, __('Are you sure you want to delete # %s?', $approverResponse['d'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Approver Response'), array('controller' => 'approver_responses', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Checker Responses'); ?></h3>
	<?php if (!empty($user['CheckerResponse'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Story Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Verdict'); ?></th>
		<th><?php echo __('Note'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['CheckerResponse'] as $checkerResponse): ?>
		<tr>
			<td><?php echo $checkerResponse['story_id']; ?></td>
			<td><?php echo $checkerResponse['user_id']; ?></td>
			<td><?php echo $checkerResponse['verdict']; ?></td>
			<td><?php echo $checkerResponse['note']; ?></td>
			<td><?php echo $checkerResponse['created']; ?></td>
			<td><?php echo $checkerResponse['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'checker_responses', 'action' => 'view', $checkerResponse['f'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'checker_responses', 'action' => 'edit', $checkerResponse['f'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'checker_responses', 'action' => 'delete', $checkerResponse['f']), null, __('Are you sure you want to delete # %s?', $checkerResponse['f'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Checker Response'), array('controller' => 'checker_responses', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Donations'); ?></h3>
	<?php if (!empty($user['Donation'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Story Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Visible'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['Donation'] as $donation): ?>
		<tr>
			<td><?php echo $donation['id']; ?></td>
			<td><?php echo $donation['story_id']; ?></td>
			<td><?php echo $donation['user_id']; ?></td>
			<td><?php echo $donation['visible']; ?></td>
			<td><?php echo $donation['amount']; ?></td>
			<td><?php echo $donation['created']; ?></td>
			<td><?php echo $donation['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'donations', 'action' => 'view', $donation['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'donations', 'action' => 'edit', $donation['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'donations', 'action' => 'delete', $donation['id']), null, __('Are you sure you want to delete # %s?', $donation['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Donation'), array('controller' => 'donations', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Story Items'); ?></h3>
	<?php if (!empty($user['StoryItem'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Story Id'); ?></th>
		<th><?php echo __('Priority'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Adopted'); ?></th>
		<th><?php echo __('Done'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Text'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['StoryItem'] as $storyItem): ?>
		<tr>
			<td><?php echo $storyItem['id']; ?></td>
			<td><?php echo $storyItem['story_id']; ?></td>
			<td><?php echo $storyItem['priority']; ?></td>
			<td><?php echo $storyItem['amount']; ?></td>
			<td><?php echo $storyItem['adopted']; ?></td>
			<td><?php echo $storyItem['done']; ?></td>
			<td><?php echo $storyItem['user_id']; ?></td>
			<td><?php echo $storyItem['created']; ?></td>
			<td><?php echo $storyItem['modified']; ?></td>
			<td><?php echo $storyItem['text']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'story_items', 'action' => 'view', $storyItem['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'story_items', 'action' => 'edit', $storyItem['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'story_items', 'action' => 'delete', $storyItem['id']), null, __('Are you sure you want to delete # %s?', $storyItem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Story Item'), array('controller' => 'story_items', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Stories'); ?></h3>
	<?php if (!empty($user['Story'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Amount'); ?></th>
		<th><?php echo __('Heading'); ?></th>
		<th><?php echo __('Text'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Amount Gathered'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['Story'] as $story): ?>
		<tr>
			<td><?php echo $story['id']; ?></td>
			<td><?php echo $story['amount']; ?></td>
			<td><?php echo $story['heading']; ?></td>
			<td><?php echo $story['text']; ?></td>
			<td><?php echo $story['user_id']; ?></td>
			<td><?php echo $story['status']; ?></td>
			<td><?php echo $story['amount_gathered']; ?></td>
			<td><?php echo $story['created']; ?></td>
			<td><?php echo $story['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'stories', 'action' => 'view', $story['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'stories', 'action' => 'edit', $story['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'stories', 'action' => 'delete', $story['id']), null, __('Are you sure you want to delete # %s?', $story['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Story'), array('controller' => 'stories', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Usertypes'); ?></h3>
	<?php if (!empty($user['Usertype'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['Usertype'] as $usertype): ?>
		<tr>
			<td><?php echo $usertype['user_id']; ?></td>
			<td><?php echo $usertype['type']; ?></td>
			<td><?php echo $usertype['created']; ?></td>
			<td><?php echo $usertype['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'usertypes', 'action' => 'view', $usertype['Array'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'usertypes', 'action' => 'edit', $usertype['Array'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'usertypes', 'action' => 'delete', $usertype['Array']), null, __('Are you sure you want to delete # %s?', $usertype['Array'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Usertype'), array('controller' => 'usertypes', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
